@extends('public.home_base')
@section('title', '首页')

@section('content')
    {{--首页广告--}}
    <section class="index_banner_wrap clearfix">
        <div class="index_banner">
            <ul>
                <li>
                    <a href="#" style="background: url({{url('static/image/banner4.jpg')}})"></a>
                </li>
            </ul>
        </div>
        <div class="panel">
            <div class="panel_header">
                <span class="title">最新公告</span>
                <span class="more" style="display: none"><a href="{{url('notice')}}">更多 &gt;&gt;</a></span>
            </div>
            <ul>
                @forelse ($notice as $item)
                    <li>
                        <a href="{{url('notice?id=').$item->id}}">
                            <span>{{$item->title}}</span>
                            <em>{{date('Y-m-d',strtotime($item->created_at))}}</em>
                        </a>
                    </li>
                @empty
                    <p>暂无公告</p>
                @endforelse

            </ul>
        </div>
    </section>
    @parent
    <div class="w1200">
        <div class="bannerdomain">
            <div class="domain">
                <div class="domain_l"></div>
                <form name="bank_form" action="" method="post" _lpchecked="1">
                    <input name="ext[]" value=".com" type="hidden">
                    <input name="ext[]" value=".cn" type="hidden">
                    <input name="ext[]" value=".net" type="hidden">
                    <input name="ext[]" value=".com.cn" type="hidden">
                    <input name="ext[]" value=".top" type="hidden">
                    <div class="fl d_body">
                        <div class="domin_search">
                            <a id="homeA" href="javascript:void(0);" target="_blank"></a>
                            <span class="font18 fl">www.</span>
                            <input type="text" class="text" name="domainname" placeholder="请输入您要查询的域名，如kuaiming"
                                   style="height: 54px;line-height: 54px;">
                            <input type="button" value="查域名" class="submit" onclick="indexSearch()">
                        </div>
                    </div>
                </form>
                <a class="domain_r">
                    <i></i>
                    <p>最新活动<br><span>高能省钱攻略，强推必看</span></p>
                </a>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>

    <div class="w1200">
        <div class="hdomains">
            <div style="width:1160px; margin:0 auto">
                <div class="yh3">常用链接：
                    <a href="{{url('domain')}}" target="_blank">备案域名</a><em>|</em>
                    <a href="{{url('domain?provider=阿里云')}}" target="_blank">阿里云备案域名</a><em>|</em>
                    <a href="{{url('domain?provider=腾讯云')}}" target="_blank">腾讯云备案域名</a><em>|</em>
                    <a href="{{url('manager')}}" target="_blank">域名管理控制台</a><em>|</em>
                </div>


                <div class="safediv" style="width: 555px;">
                    <a href="javascript:;"><img src="static/picture/domtop.png"><span>60元</span></a>
                    <a href="javascript:;"><img src="static/picture/domxyz.png"><span>25元</span></a>
                    <a href="javascript:;"><img src="static/picture/domcn.gif"><span>55元</span></a>
                    <a href="javascript:;"><img src="static/picture/domnet.png"><span>95元</span></a>
                    <a href="javascript:;"><img src="static/picture/domcom.png"><span>85元</span></a>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>

    <div class="ykj-layout">
        <div class="ykj-left fl">
            <div class="yd-title">
                <strong>阿里云备案域名</strong>
                <span><a href="{{url('domain?provider=阿里云')}}">更多&gt;&gt;</a></span>
            </div>
            <div class="ykj-lbbt">
                <div class="ymlb-title">
                    <span class="ym-name">域名</span>
                    <span class="ym-ykj">一口价</span>
                    <span>接入商</span>
                    <span>备案性质</span>
                    <span class="ym-zz">操作</span>
                </div>
                <ul class="ymlb-list">
                    @forelse($domain as $item)
                        @if($item->provider==='阿里云')
                            <li>
                        <span class="ym-name">
                            <a href="{{url('domain?id=').$item->id}}">{{$item->domain}}</a>
                        </span>
                                <span class="ym-ykj">￥{{$item->price}}</span>
                                <span class="ym-jrs">{{$item->provider}}</span>
                                @if($item->icp_type === 0)
                                    <span>无</span>
                                @elseif($item->icp_type===1)
                                    <span>个人</span>
                                @elseif($item->icp_type===2)
                                    <span>企业</span>
                                @elseif($item->icp_type===3)
                                    <span>事业单位</span>
                                @else
                                    <span>其他</span>
                                @endif
                                <span class="ym-zz">
                             <a href="{{url('domain?id=').$item->id}}" class="btn-link">购买</a>
                        </span>
                            </li>
                        @endif
                    @empty
                        <li>
                            <p style="text-align: center;color: #999">无内容</p>
                        </li>
                    @endforelse
                </ul>
            </div>
        </div>
        <div class="ykj-right fr">
            <div class="yd-title">
                <strong>腾讯云备案域名</strong>
                <span><a href="{{url('domain?provider=腾讯云')}}">更多&gt;&gt;</a></span>
            </div>
            <div class="ykj-lbbt">
                <div class="ymlb-title">
                    <span class="ym-name">域名</span>
                    <span class="ym-ykj">一口价</span>
                    <span>接入商</span>
                    <span>备案性质</span>
                    <span class="ym-zz">操作</span>
                </div>
                <ul class="ymlb-list">
                    @forelse($domain as $item)
                        @if($item->provider==='腾讯云')
                            <li>
                        <span class="ym-name">
                            <a href="{{url('domain?id=').$item->id}}">{{$item->domain}}</a>
                        </span>
                                <span class="ym-ykj">￥{{$item->price}}</span>
                                <span class="ym-jrs">{{$item->provider}}</span>
                                @if($item->icp_type === 0)
                                    <span>无</span>
                                @elseif($item->icp_type===1)
                                    <span>个人</span>
                                @else
                                    <span>企业</span>
                                @endif
                                <span class="ym-zz">
                             <a href="{{url('domain?id=').$item->id}}" class="btn-link">购买</a>
                        </span>
                            </li>
                        @endif
                    @empty
                        <li>
                            <p style="text-align: center;color: #999">无内容</p>
                        </li>
                    @endforelse
                </ul>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
@endsection